Closed
Conversation
Adds a helpful 404 page for the docs site with: - Large 404 indicator - Friendly message explaining the page wasn't found - Quick navigation cards to get back on track: - Docs Home - Get Started guide - Learn section - Search Fixes WEB-89
|
Deployment failed with the following error: Learn More: https://vercel.link/mix-routing-props |
Vercel automatically serves 404.html from build output for unmatched routes
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Rename pages/404.mdx to pages/*.mdx so Vocs treats it as catch-all route - Update build script to copy generated 404 to dist/404.html for Vercel
Vocs generates "/*" for *.mdx catch-all routes but checks for "*" in routes.tsx, causing client-side navigation to show the default NotFound component instead of the custom 404 page. This adds a Vite plugin to patch the route matching at build time. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename *.mdx to 404.mdx so vocs builds it to dist/404/index.html - Update build script to copy from dist/404/index.html - Update vocs plugin to redirect unknown routes to /404 using Navigate The catch-all *.mdx approach didn't work because vocs doesn't prerender catch-all routes. This approach uses a regular /404 page that gets built normally, then copied to 404.html for Vercel, with client-side routing redirecting to /404. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove complex imports (icons, Card components) to test if they were causing silent prerender failures. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Member
|
Moved to tempoxyz/docs#9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a helpful 404 page for the docs site so invalid URLs like https://docs.tempo.xyz/dfdf show a more helpful page.
Changes
pages/404.mdxwith:vercel.jsonto route unmatched paths to the 404 pagePreview
The page will show a centered 404 with helpful navigation options to get users back on track.
Fixes WEB-89